@extends('layout.main')
@section('content')

<div class="col-sm-8 blog-main">
    <form action="/card" method="POST">
        {{csrf_field()}}
        <div class="form-group">
            <label>卡券名称</label>
            <input name="name" type="text" class="form-control" placeholder="卡券名称">
        </div>
        <div class="form-group">
            <label>卡券描述</label>
            <textarea id="des"  name="des" class="form-control" placeholder="卡券描述" rows="10" ></textarea>
        </div>
        <div class="form-group">
            <label>收卡人</label>
            <select name="receive_id" id="receive_id" class="form-control">
                @foreach($receivers as $id => $name)
                <option value="{{$id}}">{{$name}}</option>
                @endforeach
                
            </select>
        </div>
        <div class="form-group">
            <label>到期时间</label>
            <input type="date" name="headline_time" id='headline_time' class="form-control" value='{{$time}}'>
        </div>

        @include('layout.error')
        
        <button type="submit" class="btn btn-default">提交</button>
    </form>
    <br>

</div><!-- /.blog-main -->
@endsection

